package org.xliu.cs.openproject.codegenerator.demo;

import org.xliu.cs.openproject.codegenerator.CppWebClientGenerator;

import java.io.IOException;

public class DemoWebGeneratorTest {
    public static void main(String[] args) {
        try {
            CppWebClientGenerator generator = new CppWebClientGenerator();
            String apiDescPath = "api-jersey-example.json";
            String outputPath = "demo/c++/webclient";
            generator.generate(apiDescPath, outputPath);
        } catch (IOException e) {
            System.err.println("生成C++客户端代码时出错: " + e.getMessage());
            e.printStackTrace();
        }
    }
}
